package com.example.constant;

import java.util.HashMap;
import java.util.Map;

/**
 * 全局范围的常量
 * 
 * @author Administrator
 *
 */
public class App {
	// 首页的URL请求地址get
	public final static String INDEX_URL = "http://www.qubaobei.com/ios/weekend/list.php?page=1&city_id=";
	public final static String ORG_URL = "http://www.qubaobei.com/ios/weekend/list.php?";

	// 获取活动详情的地址get
	public final static String DETAIL_URL = "http://www.qubaobei.com/ios/weekend/act_info.php?mobile=105&user_id=0&mobile=105&version=100&act_id=";

	// 登录地址post(phone,password)
	public final static String LOGIN_URL = "http://www.qubaobei.com/ios/weekend/sms/login.php?mobile=105";

	// 注册post(phone,code,password,need_code=1,c_name 南京北京,lon,lat 经纬度)
	public final static String REGISTER_URL = "http://www.qubaobei.com/ios/weekend/sms/register.php?mobile=105";

	// 手机验证码get
	public final static String CODE_URL = "http://www.qubaobei.com/ios/weekend/sms/authcode.php?type=1&phone=";

	// 城市ID
	public static Map<String, String> cityNo = new HashMap<String, String>();
	static {
		cityNo.put("南京", "1100");
		cityNo.put("广州", "2801");
		cityNo.put("上海", "200");
		cityNo.put("北京", "40000");
	}

}
